#ifndef __TEXT_EDIT_FORM
#define __TEXT_EDIT_FORM

#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Buttons.hpp>
#include "HGrid.h"
#include <Grids.hpp>
#include <ComCtrls.hpp>
#include <Dialogs.hpp>

class TTextEditForm : public TForm {
  __published:
        TPanel *Panel1;
        TLabel *Label1;
        TEdit *edtFile;
        TLabel *Label2;
        TSpeedButton *btnOpen;
        TSpeedButton *btnImport;
        TSpeedButton *btnExport;
        HGrid *grid;
        TStatusBar *status;
        TOpenDialog *open;
        TComboBox *edtOff;
        void __fastcall btnImportClick(TObject *Sender);
        void __fastcall gridHOnGetCellText(TObject *Sender, int nX, int nY,
          AnsiString &Value);
        void __fastcall gridHOnSetCellText(TObject *Sender, int nX, int nY,
          const AnsiString &Value);
        void __fastcall btnExportClick(TObject *Sender);
        void __fastcall gridKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
        void __fastcall edtOffClick(TObject *Sender);
        void __fastcall btnOpenClick(TObject *Sender);
  private:
    TextArray Strings;

  public:
    __fastcall TTextEditForm(TComponent* Owner);

    void RefreshText( void );
};

#endif
